package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.service.Impl;

import com.css.bpm.platform.utils.PlatformSessionUtils;
import com.css.bpm.platform.utils.UUIDGenerator;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity.FwImageFormEntity;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.repository.ImageFormRepository;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.service.ImageFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ImageFormServiceImpl implements ImageFormService {
    @Autowired
    private ImageFormRepository imageFormRepository;
    @Override
    public void saveImage(FwImageFormEntity fwImageFormEntity) {
        Date date=new Date();
        fwImageFormEntity.setCreateTime(date);
        fwImageFormEntity.setImageId(UUIDGenerator.getUUID());
        imageFormRepository.save(fwImageFormEntity);
    }
}
